package demo.value;
public final class boxedStringHelper
	implements org.omg.CORBA.portable.BoxedValueHelper
{
	private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_value_box_tc(demo.value.boxedStringHelper.id(),"boxedString",org.omg.CORBA.ORB.init().create_string_tc(0));
	public static void insert (final org.omg.CORBA.Any any, final java.lang.String s)
	{
		org.omg.CORBA.portable.OutputStream out = any.create_output_stream ();
		any.type (type ());
		write (out, s);
		any.read_value (out.create_input_stream (), type ());
	}

	public static java.lang.String extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static org.omg.CORBA.TypeCode type()
	{
		return _type;
	}
	public static String id()
	{
		return "IDL:boxedString:1.0";
	}
	public static java.lang.String read (final org.omg.CORBA.portable.InputStream in)
	{
		java.lang.String result;
		result=in.read_string();;
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final java.lang.String s)
	{
		out.write_string(s);
	}
	public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is)
	{
		return demo.value.boxedStringHelper.read (is);
	}
	public void write_value (final org.omg.CORBA.portable.OutputStream os, final java.io.Serializable value)
	{
		demo.value.boxedStringHelper.write (os, (java.lang.String)value);
	}
	public java.lang.String get_id()
	{
		return demo.value.boxedStringHelper.id();
	}
}
